#include "stdafx.h"
#include "ctl_text_box.h"
#include "window_project.h"
#include "string_manager.h"

text_box::text_box(data_xml* aBelongTo)
: control(aBelongTo)
{

}

void text_box::add_attribute(wstring aStrName, wstring aStrValue)
{
	__super::add_attribute(aStrName, aStrValue);
}

bool text_box::load(IXMLDOMNode* aXmlNode)
{
	if (!__super::load(aXmlNode))
	{
		return false;
	}

	return true;
}

bool text_box::save(IXMLDOMNode* aXmlNode)
{
	return true;
}

void text_box::render(Graphics & aGraphics)
{
	SolidBrush sb(Color::White);
	aGraphics.FillRectangle(&sb, (RectF)get_absolute_rect());
}

void text_box::build_properties()
{
	__super::build_properties();
}

s_properties& text_box::get_properties()
{
	__super::get_properties();
	return m_Properties;
}

void text_box::on_property_changed(CMFCPropertyGridProperty* aProperty)
{
	__super::on_property_changed(aProperty);	
}